package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Order entity. @author MyEclipse Persistence Tools
 */

public class Order implements java.io.Serializable {

	// Fields

	private Long id;
	private PaymentMethod paymentMethod;
	private CouponCode couponCode;
	private Member member;
	private Area area;
	private ShippingMethod shippingMethod;
	private Admin admin;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private String address;
	private Double amountPaid;
	private String areaName;
	private String consignee;
	private Double discount;
	private Timestamp expire;
	private Double fee;
	private Double freight;
	private String invoiceTitle;
	private Boolean isAllocatedStock;
	private Boolean isInvoice;
	private Timestamp lockExpire;
	private String memo;
	private Integer orderStatus;
	private String paymentMethodName;
	private Integer paymentStatus;
	private String phone;
	private Integer point;
	private String promotion;
	private String shippingMethodName;
	private Integer shippingStatus;
	private String sn;
	private Double tax;
	private String zipCode;
	private Set returnses = new HashSet(0);
	private Set deposits = new HashSet(0);
	private Set orderLogs = new HashSet(0);
	private Set orderItems = new HashSet(0);
	private Set refundses = new HashSet(0);
	private Set payments = new HashSet(0);
	private Set orderCoupons = new HashSet(0);
	private Set shippings = new HashSet(0);

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** minimal constructor */
	public Order(Member member, Timestamp createDate, Timestamp modifyDate,
			String address, Double amountPaid, String areaName,
			String consignee, Double discount, Double fee, Double freight,
			Boolean isAllocatedStock, Boolean isInvoice, Integer orderStatus,
			String paymentMethodName, Integer paymentStatus, String phone,
			Integer point, String shippingMethodName, Integer shippingStatus,
			String sn, Double tax, String zipCode) {
		this.member = member;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.address = address;
		this.amountPaid = amountPaid;
		this.areaName = areaName;
		this.consignee = consignee;
		this.discount = discount;
		this.fee = fee;
		this.freight = freight;
		this.isAllocatedStock = isAllocatedStock;
		this.isInvoice = isInvoice;
		this.orderStatus = orderStatus;
		this.paymentMethodName = paymentMethodName;
		this.paymentStatus = paymentStatus;
		this.phone = phone;
		this.point = point;
		this.shippingMethodName = shippingMethodName;
		this.shippingStatus = shippingStatus;
		this.sn = sn;
		this.tax = tax;
		this.zipCode = zipCode;
	}

	/** full constructor */
	public Order(PaymentMethod paymentMethod, CouponCode couponCode,
			Member member, Area area, ShippingMethod shippingMethod,
			Admin admin, Timestamp createDate, Timestamp modifyDate,
			String address, Double amountPaid, String areaName,
			String consignee, Double discount, Timestamp expire, Double fee,
			Double freight, String invoiceTitle, Boolean isAllocatedStock,
			Boolean isInvoice, Timestamp lockExpire, String memo,
			Integer orderStatus, String paymentMethodName,
			Integer paymentStatus, String phone, Integer point,
			String promotion, String shippingMethodName,
			Integer shippingStatus, String sn, Double tax, String zipCode,
			Set returnses, Set deposits, Set orderLogs, Set orderItems,
			Set refundses, Set payments, Set orderCoupons, Set shippings) {
		this.paymentMethod = paymentMethod;
		this.couponCode = couponCode;
		this.member = member;
		this.area = area;
		this.shippingMethod = shippingMethod;
		this.admin = admin;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.address = address;
		this.amountPaid = amountPaid;
		this.areaName = areaName;
		this.consignee = consignee;
		this.discount = discount;
		this.expire = expire;
		this.fee = fee;
		this.freight = freight;
		this.invoiceTitle = invoiceTitle;
		this.isAllocatedStock = isAllocatedStock;
		this.isInvoice = isInvoice;
		this.lockExpire = lockExpire;
		this.memo = memo;
		this.orderStatus = orderStatus;
		this.paymentMethodName = paymentMethodName;
		this.paymentStatus = paymentStatus;
		this.phone = phone;
		this.point = point;
		this.promotion = promotion;
		this.shippingMethodName = shippingMethodName;
		this.shippingStatus = shippingStatus;
		this.sn = sn;
		this.tax = tax;
		this.zipCode = zipCode;
		this.returnses = returnses;
		this.deposits = deposits;
		this.orderLogs = orderLogs;
		this.orderItems = orderItems;
		this.refundses = refundses;
		this.payments = payments;
		this.orderCoupons = orderCoupons;
		this.shippings = shippings;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public PaymentMethod getPaymentMethod() {
		return this.paymentMethod;
	}

	public void setPaymentMethod(PaymentMethod paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	public CouponCode getCouponCode() {
		return this.couponCode;
	}

	public void setCouponCode(CouponCode couponCode) {
		this.couponCode = couponCode;
	}

	public Member getMember() {
		return this.member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Area getArea() {
		return this.area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	public ShippingMethod getShippingMethod() {
		return this.shippingMethod;
	}

	public void setShippingMethod(ShippingMethod shippingMethod) {
		this.shippingMethod = shippingMethod;
	}

	public Admin getAdmin() {
		return this.admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Double getAmountPaid() {
		return this.amountPaid;
	}

	public void setAmountPaid(Double amountPaid) {
		this.amountPaid = amountPaid;
	}

	public String getAreaName() {
		return this.areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getConsignee() {
		return this.consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}

	public Double getDiscount() {
		return this.discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public Timestamp getExpire() {
		return this.expire;
	}

	public void setExpire(Timestamp expire) {
		this.expire = expire;
	}

	public Double getFee() {
		return this.fee;
	}

	public void setFee(Double fee) {
		this.fee = fee;
	}

	public Double getFreight() {
		return this.freight;
	}

	public void setFreight(Double freight) {
		this.freight = freight;
	}

	public String getInvoiceTitle() {
		return this.invoiceTitle;
	}

	public void setInvoiceTitle(String invoiceTitle) {
		this.invoiceTitle = invoiceTitle;
	}

	public Boolean getIsAllocatedStock() {
		return this.isAllocatedStock;
	}

	public void setIsAllocatedStock(Boolean isAllocatedStock) {
		this.isAllocatedStock = isAllocatedStock;
	}

	public Boolean getIsInvoice() {
		return this.isInvoice;
	}

	public void setIsInvoice(Boolean isInvoice) {
		this.isInvoice = isInvoice;
	}

	public Timestamp getLockExpire() {
		return this.lockExpire;
	}

	public void setLockExpire(Timestamp lockExpire) {
		this.lockExpire = lockExpire;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Integer getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getPaymentMethodName() {
		return this.paymentMethodName;
	}

	public void setPaymentMethodName(String paymentMethodName) {
		this.paymentMethodName = paymentMethodName;
	}

	public Integer getPaymentStatus() {
		return this.paymentStatus;
	}

	public void setPaymentStatus(Integer paymentStatus) {
		this.paymentStatus = paymentStatus;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getPoint() {
		return this.point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	public String getPromotion() {
		return this.promotion;
	}

	public void setPromotion(String promotion) {
		this.promotion = promotion;
	}

	public String getShippingMethodName() {
		return this.shippingMethodName;
	}

	public void setShippingMethodName(String shippingMethodName) {
		this.shippingMethodName = shippingMethodName;
	}

	public Integer getShippingStatus() {
		return this.shippingStatus;
	}

	public void setShippingStatus(Integer shippingStatus) {
		this.shippingStatus = shippingStatus;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public Double getTax() {
		return this.tax;
	}

	public void setTax(Double tax) {
		this.tax = tax;
	}

	public String getZipCode() {
		return this.zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public Set getReturnses() {
		return this.returnses;
	}

	public void setReturnses(Set returnses) {
		this.returnses = returnses;
	}

	public Set getDeposits() {
		return this.deposits;
	}

	public void setDeposits(Set deposits) {
		this.deposits = deposits;
	}

	public Set getOrderLogs() {
		return this.orderLogs;
	}

	public void setOrderLogs(Set orderLogs) {
		this.orderLogs = orderLogs;
	}

	public Set getOrderItems() {
		return this.orderItems;
	}

	public void setOrderItems(Set orderItems) {
		this.orderItems = orderItems;
	}

	public Set getRefundses() {
		return this.refundses;
	}

	public void setRefundses(Set refundses) {
		this.refundses = refundses;
	}

	public Set getPayments() {
		return this.payments;
	}

	public void setPayments(Set payments) {
		this.payments = payments;
	}

	public Set getOrderCoupons() {
		return this.orderCoupons;
	}

	public void setOrderCoupons(Set orderCoupons) {
		this.orderCoupons = orderCoupons;
	}

	public Set getShippings() {
		return this.shippings;
	}

	public void setShippings(Set shippings) {
		this.shippings = shippings;
	}

}